projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea91670
)
Don't use g_list_next in gtkselection.c
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Oct 2015 23:18:06 +0000
(19:18 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 20 Oct 2015 10:14:57 +0000
(06:14 -0400)
We generally access ->next directly.
gtk/gtkselection.c
patch
|
blob
|
history
diff --git
a/gtk/gtkselection.c
b/gtk/gtkselection.c
index 9ad905bdbc1c42bc650c3048a7518292fb89c3de..3bbdcb0b0f294e5e7ff296f6e79ae762e0ba17a1 100644
(file)
--- a/
gtk/gtkselection.c
+++ b/
gtk/gtkselection.c
@@
-628,9
+628,7
@@
gtk_target_table_new_from_list (GtkTargetList *list,
*n_targets = g_list_length (list->list);
targets = g_new0 (GtkTargetEntry, *n_targets);
- for (i = 0, tmp_list = list->list;
- i < *n_targets;
- i++, tmp_list = g_list_next (tmp_list))
+ for (tmp_list = list->list, i = 0; tmp_list; tmp_list = tmp_list->next, i++)
{
GtkTargetPair *pair = tmp_list->data;